﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IRProject.Model
{
    abstract class Node
    {
        public Node()
        {
            Children = new List<Node>();
        }
        public Node Parent { get; set;}
        public List<Node> Children { get; private set; }
        public void Add(Node chlid)
        {
            this.Children.Add(chlid);
            chlid.Parent = this;
        }
        public void Remove(Node child)
        {
            this.Children.Remove(child);
        }

        public abstract List<ResultData> GetResult();

    }
}
